home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / nametoip < prev    next >
Text File  |  2001-03-21  |  1KB  |  30 lines

  1. Synopsis:
  2.    $iptoname(<ip address>)
  3.    $nametoip(<hostname>)
  4.  
  5. Technical:
  6.    These functions are used to convert an IP address to a hostname, and vice
  7.    versa.   The $iptoname() function returns the hostname associated with
  8.    the given IP address, and $nametoip() does the opposite.
  9.  
  10. Practical:
  11.    These functions are used to convert between IP addresses and Internet
  12.    hostnames.  Obvious reasons aside, they are mostly useful when you know
  13.    which of the two the input will be.  They return nothing if the address
  14.    could not be converted, or if the input was invalid.  The $convert()
  15.    function should be used if the input is known to vary.
  16.  
  17. Returns:
  18.    iptoname: hostname for the given IP address
  19.    nametoip: IP address for the given hostname
  20.  
  21. Examples:
  22.    $iptoname(127.0.0.1)         probably returns "localhost"
  23.    $nametoip(localhost)         probably returns "127.0.0.1"
  24.    $iptoname(localhost)         error, input is not an IP address
  25.    $nametoip(127.0.0.1)         error, input is not a hostname
  26.  
  27. See Also:
  28.    convert(6)
  29.  
  30.